for i in range (4):
 a = input ("请输入账号：")
 b =input ("请输入密码：")
 if a=='kate'and b=='666666' :
    print("登录成功！")
    break
 elif i==3:
   print ("三次用户名或密码均有误！退出程序")

  
  
  

